﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Way.Bus.WMS.Controllers;
using Way.Bus.WMS.SF.Model;
using Way.Bus.WMS.Model;
using Way.EAP.DataAccess.Entity;
using Way.Contract.MVC;
using System.Data;
using System.Configuration;
using InterfaceService.DataAccess;
using Way.Contract.Data;
using Way.Bus.Controllers;
using Way.Bus.Model;

namespace Way.Bus.WMS.SF.Controllers
{
    public class SFPortsController : PortsController 
    {
        #region 初始化数据方法
        protected override void OnInitViewChildItem(Contract.Data.ModelData data, Contract.Data.ItemData item)
        {
            base.OnInitViewChildItem(data, item);
            if (data.name.EndsWith("Ports"))
            {
                switch (item.field.ToLower())
                {
                    case "portno":
                    case "status":
                    case "createdby":
                        item.visible = true;
                        break;
                    default:
                        item.visible = false;
                        break;
                }
            }
        }
        #endregion
    }
}
